import request from '@/router/axios';

export const getList = (current, size, params, categoryNo) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/taxList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      categoryNo
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/rb-oem/oem/systemNotice/system_notice/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (id) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/delTaxProduct',
    method: 'get',
    params: {
      id,
    }
  })
}

export const save = (row) => {
  return request({
    url: '/api/rb-oem/oem/invoice/product/addTaxProduct',
    method: 'post',
    data: row
  })
}